package cn.i7baozh.starter.service.config;

import cn.i7baozh.starter.common.interceptor.ErrorResultInterceptor;
import cn.i7baozh.starter.common.interceptor.RequestLoggingInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author : baoqi.zhang
 * @date :   2022/5/12 15:17
 */
@Configuration
public class ApplicationContextConfig {

    @Bean
    public RequestLoggingInterceptor requestLoggingInterceptor() {
        return new RequestLoggingInterceptor();
    }

    @Bean
    public ErrorResultInterceptor errorResultInterceptor() {
        return new ErrorResultInterceptor();
    }
}
